package com.freeLearning.boot.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("consultant_review_audit_history")
@Builder
public class ConsultantReviewAuditHistory {
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 课程评价ID，关联 course_review 表的主键
     */
    @Schema(description = "课程评价ID")
    private Long reviewId;

    /**
     * 审核状态（0: 待审核, 1: 审核通过, 2: 审核未通过）
     */
    @Schema(description = "审核状态")
    private Integer status;

    /**
     * 审核意见
     */
    @Schema(description = "审核意见")
    private String opinion;

    /**
     * 审核人ID
     */
    @Schema(description = "审核人ID")
    private Long auditorId;

    /**
     * 审核人姓名
     */
    @Schema(description = "审核人姓名")
    private String auditorName;

    /**
     * 审核时间
     */
    @Schema(description = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditTime;
}